/***********************************
* Name: InterAsignacion.java
* Date: Oct 4, 2010
* @author martin
* Description:
***********************************/

package interCodeGen;


public class InterAsignacion implements Cod3Dir{

    String dir1 = "";   //id1
    String dir2 = "";   //id2
                        //id3 -> ""

    /*****************************************
     * InterAsignacion
     * constructor
     *****************************************/
    public InterAsignacion(String dir1, String dir2){
        this.dir1 = dir1;
        this.dir2 = dir2;
    }

    /*****************************************
     * getId1
     * @return id1 with his representation
     *****************************************/
    public String getId1() {
        return this.dir1;
    }

    /*****************************************
     * getId2
     * @return id2 with his representation
     *****************************************/
    public String getId2() {
        return this.dir2;
    }

    /*****************************************
     * getId3
     * @return id3 with his representation
     *****************************************/
    public String getId3() {
        return "";
    }

    /*****************************************
     * getCodeString
     * @return the complete code of the Cod3Dir
     *****************************************/
    public String getCodeString() {
        return "\t"+this.dir1+" = "+this.dir2;
    }

}